#include <WinTen.h>
#include <Windows.h>
#include <extend.h>

//----------------------------------------------------------------------------//

CLIPPER SETPROP()
{
   HWND hWnd = ( HWND ) _parnl( 1 );

   if( IsWindow( hWnd ) )
      _retnl( SetProp( hWnd, _parc( 2 ), ( HANDLE ) _parnl( 3 ) ) );
   else
      _retnl( 0 );
}

//----------------------------------------------------------------------------//

CLIPPER GETPROP()
{
   HWND hWnd = ( HWND ) _parnl( 1 );

   if( IsWindow( hWnd ) )
      _retnl( ( LONG ) GetProp( hWnd, _parc( 2 ) ) );
   else
      _retnl( 0 );
}

//----------------------------------------------------------------------------//

CLIPPER REMOVEPROP()
{
   HWND hWnd = ( HWND ) _parnl( 1 );

   if( IsWindow( hWnd ) )
      _retl( ( BOOL ) RemoveProp( hWnd, _parc( 2 ) ) );
   else
      _retl( FALSE );
}

//----------------------------------------------------------------------------//
